<div class="modal-body wrapper-md padder-lg">
  <div class="row">
    <div class="col-sm-12">
      <div class="b-b">
        <h4 class=" m-t-none  m-b-xs">申请设备<a class="pull-right text-md pointer" ng-click="vm.close()"> <i
          class="fa fa-close"></i></a></h4>
      </div>
      <form name="form" role="form" class="form-horizontal m-t-lg col-sm-12">
        <div class="alert alert-danger" ng-show="vm.errorMsg">
          <a class="close" data-dismiss="alert" href="#">&times;</a>
          <strong>{{vm.errorMsg}}</strong>
        </div>

        <div class="form-group">
          <label class="col-lg-2 control-label">机型</label>
          <span class="col-lg-8">{{vm.deviceInfo.model}}</span>
        </div>
        <div class="form-group">
          <label class="col-lg-2 control-label">时长</label>
          <div class="col-lg-8">
            <input type="number" min="1" max="60" class="form-control" ng-model="vm.deviceInfo.duration" placeholder="单位：分钟"
                   required uib-popover="最长 60 分钟, 更长时间请联系管理员" tooltip-trigger="'focus'">
          </div>
        </div>
        <div class="m-t-md  col-sm-6 col-sm-offset-3">
          <button type="submit" class="btn btn-success btn-block" ng-click="vm.applyDevice(vm.deviceInfo)" ng-disabled='form.$invalid' id="projectSubmit" data-loading-text="Loading...">确定
          </button>
        </div>
      </form>
    </div>
  </div>
</div>
